package com.cloud.code.算法.栈;

import com.cloud.code.算法.链表.LinkedListStack;

public class Test {

    public static void main(String[] args) {
        ArrayStack<Integer> arrayStack = new ArrayStack<>(3);

        LinkedListStack linkedListStack = new LinkedListStack();

        for (int i = 0; i < 7; i++) {
            linkedListStack.push(i);
        }
        while (linkedListStack.getSize() > 0) {
            System.out.println(linkedListStack.pop());
        }

    }
}
